package com.sc.nft.dao;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sc.nft.entity.ReportOverview;
import com.sc.nft.entity.vo.ReportOverviewVO;
import com.sc.nft.mapper.ReportOverviewMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 后台报表总览(ReportOverview)表Dao层
 *
 * @author wwc
 * @since 2023-04-13 14:43:34
 */
@Slf4j
@Repository
public class ReportOverviewDao extends ServiceImpl<ReportOverviewMapper, ReportOverview> {

    public Boolean insertBatch(List<ReportOverview> list) {
        return this.saveBatch(list);
    }

    public List<ReportOverviewVO> obtainTheDataOfThePreviousDaysBasedOnTheDaysAndTypes(Integer day, List<Integer> codes) {
        return baseMapper.obtainTheDataOfThePreviousDaysBasedOnTheDaysAndTypes(day,codes);
    }

}
